let { db } = require('../tools')
module.exports = (req, res) => {
    // console.log(req.session);
    if(req.session) {
        res.json({errno: 0, username: req.session.username })
        // res.json({errno: 0, username: 'admin' })

    }
}